<?php

declare(strict_types=1);

namespace app\index\controller;

use think\facade\App;
use think\facade\View;
use app\BaseController;
use think\facade\Request;

class Index
{
    public function index()
    {
        // // 直接渲染内容
        // $content = '{$name}-{$email}';
        // return View::display($content, ['name' => 'thinkphp', 'email' => 'thinkphp@qq.com']);

        // $action = $this->request->action();
        // $path = $this->app->getBasePath();
        // var_dump($action);
        // var_dump($path);

        // 不带任何参数 自动定位当前操作的模板文件
        return View::fetch();
    }
}
